package pers.xiaojun.boot.module.system.constants;

/**
 * Redis Key常量
 *
 * @author xiaojun
 * @since 2025-10-06
 */
public interface RedisKeyConstants {

    /**
     * 验证码相关
     */
    interface Captcha {
        /**
         * 图片验证码
         */
        String IMAGE_CAPTCHA = "system:captcha:image:{}";

    }

    /**
     * Token相关
     */
    interface Token {
        /**
         * 用户Token
         */
        String USER_TOKEN = "system:token:user:{}";
    }

    /**
     * 缓存相关
     */
    interface Cache {
        String USER_ROLE_IDS = "cache:user:role_ids";
        String ROLE_MENU_IDS = "cache:role:menu_ids";
        String SUPER_ADMIN_ROLE = "cache:role:info";
    }

    /**
     *  OAuth 2.0
     */
    interface OAuth2 {
        String SYSTEM_CODE = "system:oAuth2_code:{}";
    }

}
